<!--
  Generated template for the UprefreshPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

  <ion-navbar>
    <ion-title>下拉刷新 + 上拉加载</ion-title>
  </ion-navbar>

</ion-header>


<ion-content padding>
  <ion-refresher (ionRefresh)="doRefresh($event)" pullMax="300">
    <ion-refresher-content
            pullingIcon="arrow-dropdown"
            pullingText="下拉刷新..."
            refreshingSpinner="circles"
            refreshingText="加载中..."></ion-refresher-content>
  </ion-refresher>
  <ion-list>
    <ion-item *ngFor="let item of list">
      {{item.title}}
      <button ion-button [navPush]="NewscontentPage" [navParams]="{'aid':item.aid}">查看</button>
    </ion-item>
  </ion-list>
  <ion-infinite-scroll (ionInfinite)="doInfinite($event)"
                       threshold="100px">
    <ion-infinite-scroll-content
            loadingSpinner="bubbles"
            loadingText="正在加载更多..."></ion-infinite-scroll-content>
  </ion-infinite-scroll>
</ion-content>
